<!-- 这是订单页面 -->
<template>
	<view class="orderpage">
		<view class="row" v-for="item in 5" @click="goDetail(item)">
			<view class="head">
				<view class="number">编号 <text class="way">商家外送</text></view>
				<view class="state">
					<u-icon name="weixin-fill" size="22" color="#04c15f"></u-icon>
					<text>已支付</text>
				</view>

			</view>
			<view class="boby">卫龙大面筋

			</view>
			<view class="footer">
				<view class="time">2023-06-10 18:20

				</view>
				<view class="count">
					共2件商品，实付<text class="price">￥33.3</text>

				</view>

			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			};
		},
		methods: {
			// 跳转到详情
			goDetail(value) {
				uni.navigateTo({
					url: "/pages/order/detai?item=" + value
				})
			}
		}


	}
</script>

<style lang="scss">
	page {
		background: $page-bg-color;
	}

	.orderpage {
		padding: 30rpx;

		.row {
			background: #fff;
			padding: 40rpx 30rpx;
			border-radius: 30rpx;
			margin-bottom: 30rpx;

			.head {
				@include flex-box();
				font-size: 30rpx;

				.number {
					@include flex-box-set(start);

					.way {
						background: #19be19;
						color: #fff;
						font-size: 22rpx;
						padding: 6rpx 20rpx;
						border-radius: 30rpx;
						margin-left: 10rpx;
					}
				}

				.state {
					color: $brand-theme-color-aux;
					@include flex-box-set(start);
				}

			}

			.boby {
				border: 1px solid $border-color;
				padding: 60rpx 20rpx;
				border-radius: 10rpx;
				background: #f9f9f9;
				font-size: 34rpx;
				margin: 30rpx 0;
			}

			.footer {
				@include flex-box();
				font-size: 26rpx;
				color: #a5a5a5;

				.price {
					font-weight: bold;
					color: #000;
				}
			}

		}
	}
</style>